package com.runvp.common.model.tcp;

import com.alibaba.fastjson.JSONObject;
import lombok.Getter;
import lombok.ToString;

/**
 * 接受消息实体
 */
@Getter
@ToString
public class MessageReceiveBody extends MessageParseBody {


    private static final long serialVersionUID = 1L;
    /**
     * 报文数据主体
     */
    private String body;
    /**
     * 报文数据主体
     */
    private JSONObject bodyJson;

    public MessageReceiveBody setBodyJson(JSONObject bodyJson) {
        this.bodyJson = bodyJson;
        return this;
    }

    public MessageReceiveBody setBody(String body) {
        this.body = body;
        return this;
    }
}
